//
//  UIButton+Block.h
//  WeiNingProject
//
//  Created by tianjians on 2018/10/12.
//  Copyright © 2018年 卫宁数据. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef void(^tapActionBlock)(UIButton *button);
@interface UIButton (Block)

@property (nonatomic, copy) tapActionBlock actionBlock;

+ (UIButton *)createBtnFrame:(CGRect)frame title:(NSString *)title bgImageName:(NSString *)bgImageName backgroundColor:(UIColor *)color action:(tapActionBlock)actionBlock;


@end
